package com.jffccloud.auth.mapper;

import com.jffccloud.auth.model.Menu;
import com.jffccloud.auth.model.Privilege;
import com.jffccloud.auth.model.SysUser;
import com.jffccloud.common.mybatis.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
@Mapper
@Component
public interface UserMapper extends MyMapper<SysUser> {
    void resetPassword(Map map);
    SysUser findUserByUsername(String username);
    List<Privilege> queryPrivilege(Map map);
    List<Privilege> getMenu(String userId);
    List<Menu> queryUserMenuPrivilege(Map map);
    List<Privilege> getMenuAll(Map map);
    List<Privilege> getMenuNext(Map map);
}
